﻿using System;
using System.Linq;

namespace Xc.DataAccess.PcpChannels
{
    /// <summary>
    /// 上报升级结果 应答
    /// </summary>
    public class DeviceUploadUpdateResultRespond : RequestFrame
    {
        public override MessageCode MessageCode => MessageCode.UploadUpdateResult;

        public override byte[] DataArea
        {
            get
            {
                return new byte[] { (byte)Status };
            }
        }
        /// <summary>
        /// 升级状态
        /// </summary>
        public UploadUpdateResult Status { get; set; }
        public enum UploadUpdateResult
        {
            Success = 0,
            TaskNotExist = 0x80
        }
    }
}
